import Home from '@/views/home'
import Category from '@/views/category'
import Member from '@/views/member'
import Mine from '@/views/mine'
import NavBar from '@/components/nav-bar'
import TabBar from '@/components/tab-bar'
const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    components: {
      header: NavBar,
      footer: TabBar,
      default: Home
    },
    meta: {
      isTab: true,
      title: '首页',
      icon: 'home-o'
    }
  },
  {
    path: '/category',
    name: 'Category',
    components: {
      footer: TabBar,
      default: Category
    },
    meta: {
      isTab: true,
      title: '蛋糕名录',
      icon: 'apps-o'
    }
  },
  {
    path: '/mine',
    name: 'Mine',
    components: {
      footer: TabBar,
      default: Mine
    },
    meta: {
      isTab: true,
      title: '我的订单',
      icon: 'apps-o'
    }
  },
  {
    path: '/member',
    name: 'Member',
    components: {
      footer: TabBar,
      default: Member
    },
    meta: {
      isTab: true,
      title: '会员中心',
      icon: 'apps-o'
    }
  }

]
export default routes
